package com.fc.happyteam.dao;


import com.fc.happyteam.entity.SysDictGroupEntity;
import com.fc.happyteam.entity.SysDictItemEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by futurecreative on 2017/7/25.
 */
public interface SysDictDao {
    SysDictItemEntity getSysDictItem(Integer id);

    SysDictItemEntity getSysDictItemByCode(String code);

    SysDictGroupEntity getSysDictGroup(Integer id);

    SysDictGroupEntity getSysDictGroupByCode(String groupCode);

    List<SysDictGroupEntity> querySysDictGroupList(Map<String, Object> map);

    int querySysDictGroupTotal(Map<String, Object> map);

    void saveSysDictItem(SysDictItemEntity entity);

    void saveSysDictGroup(SysDictGroupEntity entity);

    int updateSysDictItem(SysDictItemEntity entity);

    int updateSysDictGroup(SysDictGroupEntity entity);

    int deleteSysDictItems(Integer[] itemId);

    int deleteSysDictGroups(Integer[] groupId);
}
